package _1_常用数据类型_关键字;

import java.io.IOException;
import java.io.InputStream;

/**
 *
 */
public class StdInStdOut implements Cloneable {


  /**
   * 函数调用时, 基本数据类型传递的是 值, 引用类型传递的是 引用
   */
  public static void main(String[] args) throws IOException {
    System.console().readPassword();
    InputStream in = System.in;
    byte[] buf = new byte[1];
    int len = -1;
    try {
      while ((len = in.read(buf,0,1)) != -1) {
        System.out.write(buf, 0, len);
        System.out.flush();
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
  }


}
